using System.Text.Json.Serialization;
using JlPay.Sdk.Models;

namespace JlPay.Sdk.Models.Trans.Mini.Wx
{
    /// <summary>
    /// 微信授权绑定请求
    /// </summary>
    public class AuthBindRequest : OrgBaseRequest
    {
        /// <summary>
        /// API接口路径
        /// </summary>
        public const string API_URL = "/open/trans/authbind";
        
        /// <summary>
        /// 商户号
        /// </summary>
        [JsonPropertyName("mch_id")]
        public string MchId { get; set; } = string.Empty;

        /// <summary>
        /// 交易类型
        /// </summary>
        [JsonPropertyName("pay_type")]
        public string PayType { get; set; } = string.Empty;

        /// <summary>
        /// JSAPI支付授权目录
        /// </summary>
        [JsonPropertyName("jsapi_path")]
        public string JsapiPath { get; set; } = string.Empty;

        /// <summary>
        /// 公众账号ID
        /// </summary>
        [JsonPropertyName("sub_appid")]
        public string SubAppid { get; set; } = string.Empty;

        /// <summary>
        /// 终端IP
        /// </summary>
        [JsonPropertyName("mch_create_ip")]
        public string MchCreateIp { get; set; } = string.Empty;
    }
} 